<?php
include_once('class/autoload.php'); // pour inclure nos classes
include_once('class/config.inc.php');
$site = new page_securisee('accueil');
if (utilCoTypeC($_SESSION['identifiant']) == 1){
	//Si le nom et le prénom du nouveau praticien sont renseignés, on peut l'ajouter à la BDD
	if(isset($_POST['nomNouvPrat']) && isset($_POST['prenomNouvPrat']))
	{
		add_prat($_POST['nomNouvPrat'], $_POST['prenomNouvPrat']);
	}
	$site->corps .= 
			'
			<h2 class="form-signin-heading">Gestion des licences</h2>
			
			<div class="col-md-12 form-signin" role="complementary">
            	<div id="search">
	  					<input name="q" type="text" class="form-control " size="40" placeholder="Recherche..." id="searchbox">
				</div>
				<div class="table-responsive">
				<table id="Liste"class="table table-striped table-hover ">
					<thead>
						<tr>
							<th class="col-md-4">Nom</th>
							<th class="col-md-1">Téléphone</th>
							<th colspan="3" class="col-md-5">Adresse</th>
							<th class="col-md-1">Etat Licences</th>
							<th class="col-md-1">&nbsp;</th>
						</tr>
					</thead>
					<tbody>
						'.gest_cabinet().'
					</tbody>
				</table>
			</div>
			</div>';
	}
else
{
		$site->corps = 
		'<h2 class="form-signin-heading">G&eacuterer les licences</h2>
			<table class="table table-striped">
				<thead>
					<tr>
						<th>Nom</th>
						<th>Pr&eacutenom</th>
						<th>Oremia Mobile</th>
						<th>Oremia Mobile HD</th>
					</tr>
				</thead>
				<tbody>
					'.gest_praticiensDev().'
				</tbody>
			</table>';
}
$site->affiche();
?>